package co.yixiang.modules.shop.service.dto;

import co.yixiang.modules.shop.domain.YxStoreCart;
import co.yixiang.modules.shop.domain.YxStoreProduct;
import co.yixiang.modules.shop.domain.YxUserAddress;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class OrderParam {
	@ApiModelProperty(value = "用户ID")
	private Long uid;

	@ApiModelProperty(value = "购物车id 数组")
	private List<Long> cartItemIds;

	@ApiModelProperty(value = "立即购买时提交的商品项，包装为购物车项形式")
	private YxStoreCart orderItem;

	@ApiModelProperty(value = "选择的地址id,0为默认地址")
	@NotNull(message = "地址不能为空")
	private Long addressId;

}
